<%@ page import="cn.dai.pojo.Java30" %>
<%@ page import="cn.dai.util.JdbcUtils" %><%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2020/6/3
  Time: 13:19
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>添加学员执行</title>
</head>
<body>

<%
    String name = request.getParameter("name");

    String phone = request.getParameter("phone");

    String qq = request.getParameter("qq");

    String sql = "INSERT INTO java30(j30_name,j30_phone,j30_qq) VALUES(?,?,?);";

    int update = JdbcUtils.update(JdbcUtils.getConnection(), sql, new Object[]{name, phone, qq});

    if (update > 0) {
        response.sendRedirect(request.getContextPath()+"/backstage/panel.jsp");
        return;
    }

%>
</body>
</html>
